﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 使用杨中科的读取数据库配置
{
    internal class Teacher
    {
        public string Name { get; set; }
        public string Age { get; set; }
        public Student student { get; set; }
        public override string ToString()
        {

            return $"老师名称：{this.Name}\n老师年龄：{this.Age}\n学生名称：{student.Name}\n学生年龄：{student.Age}";
        }
    }
}
